package com.example.demo.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

//商品类
@Data
public class Item {
    @ApiModelProperty("商品id")
   private String id;
    @ApiModelProperty("商品名称")
   private String name;
    @ApiModelProperty("商品价格")
   private double price;
    @ApiModelProperty("商品类型")
   private ItemType type;

    public  Item()
    {

    }

    public Item(String id, String name, double price, ItemType type) {
        this.id =id;
        this.name =name;
        this.price =price;
        this.type=type;
    }

    // alt+insert手动构造方法
}
